package com.maikang.exammall.entity.constant;

public class RedisKeyConstant {
    private static final String userPositionKey = "json.userId_position.";
    private static final String userCaptchaKey = "string.login_captcha.";
    private static final String userLoginSMSKey = "string.login_sms.";
    private static final String isSMSSentMomentAgoKey = "string.is_sms_sent_moment_ago.";

    public static final String earningSpecificationKey = "earning_specification";

    public static String getUserPositionKeyFromUserId(Long userId) {
        return userPositionKey + userId;
    }

    public static String getUserCaptchaKeyFromUserId(Long userId) {
        return userCaptchaKey + userId;
    }

    public static String getUserLoginSMSKeyFromMobile(String mobile) {
        return userLoginSMSKey + mobile;
    }

    public static String getIsSMSSentMomentAgoKeyFromUserId(Long userId) {
        return isSMSSentMomentAgoKey + userId;
    }

}
